package com.healer.controller;

import com.healer.common.AssembleResponseMsg;
import com.healer.pojo.ReturnBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/error")
public class ErrorController {

    @RequestMapping("/403")
    public ReturnBody error403(){
        return new AssembleResponseMsg().failure(200,"error","你没有权限访问，请登录！！");
    }
    @RequestMapping("/500")
    public ReturnBody error500(){
        return new AssembleResponseMsg().failure(200,"error","服务器初始化失败！！");
    }
}
